<?
	require_once("class.base.php");
	
	class PaymentProcessor extends Base
	{
		var $logfile;
		var $input;
		
		var $status;
		
		//
		// Constructor 
		//
		function PaymentProcessor()
		{
			// :TODO: Add constructor logic here
		}
		
		
		//
		// Init
		// 
		function Init($input)
		{
			$this->input = $input;
			$this->CheckInput();
		}
		
		
		function CheckInput()
		{
			foreach ($this->input as $field => $value)
			{
				if (preg_match("/[^A-Za-z0-9\-_]/",$field)) 
				{
					$this->AddToLog("Invalid character in POST field '$field'");
					return false;
				}
			}
		}
		
		
		//
		// Free resources
		//
		function Free()
		{
			$this->CloseLogFile();
		}
	}
?>